public class Dog extends Animal{
    Dog(String s){
        name = s;
    }
    public void cry() {
        System.out.println("汪汪");
    }
    public void swimming() {
        System.out.println("狗会游泳");
    }
}
